from sqlalchemy import Boolean, Column, String, BigInteger, DATETIME, Text
from sqlalchemy.dialects.mysql import INTEGER

from db.base_class import Base


class VOne(Base):
    __tablename__ = 'vone'

    userName = Column(String(50))
    password = Column(String(50))
    token = Column(Text, nullable=True)
    lastTime = Column(BigInteger)


class VOneService(Base):
    __tablename__ = 'voneservice'

    env = Column(String(50))
    serviceName = Column(String(50))
    serviceCode = Column(String(50))
    serviceId = Column(String(50))
    watchUser = Column(String(250))
    execUser = Column(String(250), default='')
